package com.gxa.saas.admin.controller;


import com.gxa.saas.admin.service.FinanceService;
import com.gxa.saas.core.common.JsonResult;
import com.gxa.saas.core.entity.vo.gyOrderVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Api(tags = "财务管理模块")
@Controller
public class financeController {

    @Autowired
    private FinanceService financeService;

    @ApiOperation("提现申请审核接口")
    @ResponseBody
    @PostMapping("/finance/audit")
    public Map auditFinance(gyOrderVo gyOrderVo){
        this.financeService.updateById(gyOrderVo);
        System.out.println(gyOrderVo);

        JsonResult jsonResult = new JsonResult();
        jsonResult.setCode("200");
        jsonResult.setMsg("审核成功");
        return jsonResult.getMap();

    }


}
